package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum PayTypeEnum implements IEnum<Integer>
{
    /**
     * 未支付
     */
    NOT_PAY(0,"未支付"),
    /**
     * 微信支付
     */
    WECHATPAY(1,"微信"),
    /**
     * 支付宝
     */
    ALIPAY(2,"支付宝"),
    /**
     * 现金支付
     */
    CASH_PAYMENT(3,"现金"),
    /**
     * 会员钱包
     */
    MEMBER_WALLET(4,"会员钱包"),
    /**
     * POS机
     */
    POS_MACHINE(5,"POS机"),
    ;
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    @Override
    public Integer getValue()
    {
        return code;
    }

    public String getStatus(){return status;}
}
